package com.ibm.ibank.demo.mybatis.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ibm.ibank.demo.mybatis.entity.GpDbmRel;
import com.ibm.ibank.demo.mybatis.service.GpDbmRelService;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ZW
 * @since 2020-06-26
 */
@RestController
@RequestMapping("/gpDbmRel")
public class GpDbmRelController {
	@Autowired
	GpDbmRelService serv;

	@GetMapping("/rels/{id}")
	public GpDbmRel getRel(@PathVariable String id) {
		GpDbmRel selectById = serv.getRel(id);
		return selectById;
	}
}

